package com.financing.wap.vo;

import java.math.BigDecimal;
import java.util.Date;
import java.util.List;

import com.financing.wap.util.Constants;
import org.springframework.format.annotation.DateTimeFormat;

public class OrderVO extends BaseToVO {

	/**
	 * 
	 */
	private static final long serialVersionUID = -2358870143643064194L;
	/**
	 * faid
	 */
	private String faid;
	/**
	 * 产品id
	 */
	private Integer pid;
	/**
	 * 客户id
	 */
	private Integer clientid;
	/**
	 * 购买金额
	 */
	private BigDecimal amount;
	/**
	 * 返佣率
	 */
	private BigDecimal rebateRate;
	/**
	 * 返佣额
	 */
	private BigDecimal rebateAmount;

	private BigDecimal commission;//佣金
	/**
	 * 备注
	 */
	private String remark;
    private Date createDate;
    private String createBy;
    private Date updateDate;
    private String updateBy;
	/**
	 * 交易状态
	 */
	private Integer payStatus;
	
	/**
	 * 机构Fa 部门 id
	 */
	private Integer faCorpId;
	
	/**
	 * 机构FA 机构名称
	 */
	private String faCorpName;
	
	/**
	 * fa姓名
	 */
	private String faRealName;
	
	/**
	 * 产品名称
	 */
	private String pName;
	/**
	 * 产品代码
	 */
	private String pCode;
	/**
	 * 产品总金额（发型规模）
	 */
	private BigDecimal pIssuingScale;
	/**
	 * 客户姓名
	 */
	private String cName;
	/**
	 * 阶段状态查询
	 */
	private String payStatusStage;
	private String payStatusStageStart;
	private String payStatusStageEnd;
	/**
	 * 订单业务编号
	 */
	private String orderCode;
	
	
	/**
	 * 预约时间-开始
	 */
	@DateTimeFormat(pattern="yyyy-MM-dd")
	private Date appointmentDateStar;
	
	/**
	 * 预约时间-结束
	 */
	@DateTimeFormat(pattern="yyyy-MM-dd")
	private Date appointmentDateEnd;

	/**
	 * 姓名，编号和手机号的模糊字段
	 */
	private String queryStr;
	
	/**
	 * 排序字段
	 */
	private String orderParameter = "";
	
	/**
	 * 排序类型
	 */
	private String orderType = "";
	
	/**
	 * 子理财师 数组
	 */
	private List  sonFaidList;
	/**
	 * 订单归属人ID
	 */
	private Integer oOwnerId;
	/**
	 * 竞价ID
	 */
	private Integer receiptId;
	/**
	 * 订单表添加店铺关联
	 */
	private String shopperId;
	
	/**
	 * 用户电话
	 */
	private String cMobile;
	/**
	 * 是否查询店铺预约订单
	 */
	private String shopOrder;
	
	public String getShopperId() {
		return shopperId;
	}

	public void setShopperId(String shopperId) {
		this.shopperId = shopperId;
	}

	public Integer getoOwnerId() {
		return oOwnerId;
	}

	public void setoOwnerId(Integer oOwnerId) {
		this.oOwnerId = oOwnerId;
	}

	public Date getAppointmentDateStar() {
		return appointmentDateStar;
	}

	public void setAppointmentDateStar(Date appointmentDateStar) {
		this.appointmentDateStar = appointmentDateStar;
	}

	public Date getAppointmentDateEnd() {
		return appointmentDateEnd;
	}

	public void setAppointmentDateEnd(Date appointmentDateEnd) {
		this.appointmentDateEnd = appointmentDateEnd;
	}

	public String getQueryStr() {
		return queryStr;
	}

	public void setQueryStr(String queryStr) {
		this.queryStr = queryStr;
	}

	public String getOrderCode() {
		return orderCode;
	}

	public void setOrderCode(String orderCode) {
		this.orderCode = orderCode;
	}


	public String getPayStatusStageStart() {
		// payStatusStage 值判断
		if( Constants.orderCtrType_status.containsKey(getPayStatusStage())){
			// 预约中
			payStatusStageStart = Constants.orderCtrType_status.get(getPayStatusStage());
		}
		return payStatusStageStart;
	}
	
	public String getPayStatusStageEnd() {
		// payStatusStage 值判断
		if(getPayStatusStage().equals("1")){
			// 预约中
			payStatusStageEnd = "130";
		}else if(getPayStatusStage().equals("2")){
			// 签约中
			payStatusStageEnd = "240";
		}else if(getPayStatusStage().equals("3")){
			// 返佣中
			payStatusStageEnd = "350";
		}

		return payStatusStageEnd;
	}
	
	public String getPayStatusStage() {
		return payStatusStage;
	}
	public void setPayStatusStage(String payStatusStage) {
		this.payStatusStage = payStatusStage;
	}
	public String getcName() {
		return cName;
	}
	public void setcName(String cName) {
		this.cName = cName;
	}
	public BigDecimal getpIssuingScale() {
		return pIssuingScale;
	}
	public void setpIssuingScale(BigDecimal pIssuingScale) {
		this.pIssuingScale = pIssuingScale;
	}
	public String getpName() {
		return pName;
	}
	public void setpName(String pName) {
		this.pName = pName;
	}
	public String getpCode() {
		return pCode;
	}
	public void setpCode(String pCode) {
		this.pCode = pCode;
	}
	public String getFaid() {
		return faid;
	}

	public void setFaid(String faid) {
		this.faid = faid;
	}

	public Integer getPid() {
		return pid;
	}
	public void setPid(Integer pid) {
		this.pid = pid;
	}
	public Integer getClientid() {
		return clientid;
	}
	public void setClientid(Integer clientid) {
		this.clientid = clientid;
	}
	public BigDecimal getAmount() {
		return amount;
	}
	public void setAmount(BigDecimal amount) {
		this.amount = amount;
	}
	
	
	public Integer getPayStatus() {
		return payStatus;
	}
	public void setPayStatus(Integer payStatus) {
		this.payStatus = payStatus;
	}
	public BigDecimal getRebateRate() {
		return rebateRate;
	}
	public void setRebateRate(BigDecimal rebateRate) {
		this.rebateRate = rebateRate;
	}
	public BigDecimal getRebateAmount() {
		return rebateAmount;
	}
	public void setRebateAmount(BigDecimal rebateAmount) {
		this.rebateAmount = rebateAmount;
	}
	public String getRemark() {
		return remark;
	}
	public void setRemark(String remark) {
		this.remark = remark;
	}
	public Date getCreateDate() {
		return createDate;
	}
	public void setCreateDate(Date createDate) {
		this.createDate = createDate;
	}
	public String getCreateBy() {
		return createBy;
	}
	public void setCreateBy(String createBy) {
		this.createBy = createBy;
	}
	public Date getUpdateDate() {
		return updateDate;
	}
	public void setUpdateDate(Date updateDate) {
		this.updateDate = updateDate;
	}
	public String getUpdateBy() {
		return updateBy;
	}
	public void setUpdateBy(String updateBy) {
		this.updateBy = updateBy;
	}

	public Integer getFaCorpId() {
		return faCorpId;
	}

	public void setFaCorpId(Integer faCorpId) {
		this.faCorpId = faCorpId;
	}

	public String getFaCorpName() {
		return faCorpName;
	}

	public void setFaCorpName(String faCorpName) {
		this.faCorpName = faCorpName;
	}

	public String getFaRealName() {
		return faRealName;
	}

	public void setFaRealName(String faRealName) {
		this.faRealName = faRealName;
	}

	public String getOrderParameter() {
		return orderParameter;
	}

	public void setOrderParameter(String orderParameter) {
		this.orderParameter = orderParameter;
	}

	public String getOrderType() {
		return orderType;
	}

	public void setOrderType(String orderType) {
		this.orderType = orderType;
	}

	public List getSonFaidList() {
		return sonFaidList;
	}

	public void setSonFaidList(List sonFaidList) {
		this.sonFaidList = sonFaidList;
	}

	public Integer getReceiptId() {
		return receiptId;
	}

	public void setReceiptId(Integer receiptId) {
		this.receiptId = receiptId;
	}

	public void setPayStatusStageStart(String payStatusStageStart) {
		this.payStatusStageStart = payStatusStageStart;
	}

	public void setPayStatusStageEnd(String payStatusStageEnd) {
		this.payStatusStageEnd = payStatusStageEnd;
	}

	public BigDecimal getCommission() {
		return commission;
	}

	public void setCommission(BigDecimal commission) {
		this.commission = commission;
	}

	public String getcMobile() {
		return cMobile;
	}

	public void setcMobile(String cMobile) {
		this.cMobile = cMobile;
	}

	public String getShopOrder() {
		return shopOrder;
	}

	public void setShopOrder(String shopOrder) {
		this.shopOrder = shopOrder;
	}

	
}
